MCS_FLAGS = -debug -nowarn:0618
ASSEMBLY = DashboardAddin.dll
SOURCES = \
	$(srcdir)/DashboardAddin.cs

ASSEMBLY_REFERENCES = \
	$(TOMBOY_LIBS) \
	$(DASHBOARD_LIBS)

RESOURCES = \
	$(srcdir)/DashboardAddin.addin.xml

addindir = $(ADDINDIR)
addin_SCRIPTS = $(ASSEMBLY) $(ASSEMBLY).mdb

all: $(ASSEMBLY)

$(ASSEMBLY): $(SOURCES) $(RESOURCES)
	$(MCS) $(MCS_FLAGS) -out:$(ASSEMBLY) -target:library $(ASSEMBLY_REFERENCES) $(SOURCES) $(join $(RESOURCES:%=-resource:%,),$(notdir $(RESOURCES)))

EXTRA_DIST = $(SOURCES)
CLEANFILES = $(ASSEMBLY) $(ASSEMBLY).mdb 
DISTCLEANFILES = Makefile.in 

